package org.jgs1904.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.jgs1904.dao.RegionDao;
import org.jgs1904.dao.impl.RegionDaoImpl;
import org.jgs1904.entity.Region;
import org.jgs1904.service.RegionService;

/**
 * 	区划业务类
 * @author junki
 * @date 2020年3月26日
 */
public class RegionServiceImpl implements RegionService {

	private RegionDao regionDao = new RegionDaoImpl();
	
	@Override
	public List<Region> getProvince() throws SQLException {
		return regionDao.selectProvince();
	}

	@Override
	public List<Region> getChild(String parentId) throws SQLException {
		return regionDao.selectRegionByParentId(parentId);
	}


}
